package k1_exercise;

import java.util.Scanner;

public class Branch_awardSystem {

    /**
     * 做学院评奖系统
     *  如果数学成绩大于80分并且语文成绩大于80分，获奖学金500元
     *  如果数学小于30并且语文小于30分，输出重修
     */
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入数学成绩：");
        int mathScore = scanner.nextInt();
        System.out.println("请输入语文成绩：");
        int chineseScore = scanner.nextInt();


        if(mathScore>=80 && mathScore<=100 && chineseScore>=80 && chineseScore<=100){
            System.out.println("获得奖学金500元");
        }else if(mathScore>=0 && mathScore<30 && chineseScore>=0 && chineseScore<30){
            System.out.println("重修");
        }
    }
}
